package com.liuwei.learning.jpa.testdb1;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.PagingAndSortingRepository;


public interface ArticleRepository extends PagingAndSortingRepository<Article,Long> {
    Page<Article> findAll(Pageable pageable);

    Page<Article> findByAuthor(String author,Pageable pageable);

    Page<Article> findByAuthorAndTitle(String author,String title,Pageable pageable);
}
